package hcn.protocol.brandnew.zhenliao.jianyan;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;


/**
 * 关联指标结果因素信息-响应消息(成功) - ODS_03050009_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class InspectResultNatureItemListQueryResponse {

    /**
     * 总记录数
     */
    @XmlElement(name = "Total")
    private Long total;
    /**
     * 检验报告集合
     */
    @XmlElementWrapper(name = "ResultNatureLists")
    @XmlElement(name = "ResultNatureList")
    private List<ResultNatureList> resultNatureLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ResultNatureList {

        @XmlElement(name = "ResultNatureId")
        private String resultNatureId;
        @XmlElement(name = "ResultNatureCode")
        private String resultNatureCode;
        @XmlElement(name = "ResultNatureValue")
        private String resultNatureValue;
        @XmlElementWrapper(name = "NatureLists")
        @XmlElement(name = "NatureList")
        private List<NatureList> natureLists;

    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class NatureList {

        @XmlElement(name = "NatureCode")
        private String natureCode;
        @XmlElement(name = "NatureName")
        private String natureName;

    }

}
